﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WeLinkHelper.Model
{
    public class Error
    {
        /// <summary>
        /// 返回code
        /// </summary>
        public string errorCode { get; set; }
        /// <summary>
        /// 返回信息(错误成功的信息都在这里)
        /// </summary>
        public string errorMsg { get; set; }
    }

    public class WeLinkResultMsgModel
    {
        /// <summary>
        /// 消息标识，由服务器生成
        /// </summary>
        public string msg_id { get; set; }
        /// <summary>
        /// 应用请求端输入消息标识，服务器响应中携带返回。
        /// </summary>
        public string client_msg_id { get; set; }
        /// <summary>
        /// 第三方应用标识。
        /// </summary>
        public string app_service_id { get; set; }
        /// <summary>
        /// 服务器消息发送时间。
        /// </summary>
        public string server_send_time { get; set; }
        /// <summary>
        /// 错误信息。
        /// </summary>
        public Error error { get; set; }
    }


    public class DataItem
    {
        /// <summary>
        /// 
        /// </summary>
        public string corpUserId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string userId { get; set; }
    }

    public class UserInfoDetailResult
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<DataItem> data { get; set; }
    }

    public class RobotRespResult
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string data { get; set; }
    }
    public class UploadRespResult
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public UploadRespDataModel data { get; set; }
    }
    public class UploadRespDataModel
    {
        public string location { get; set; }
    }

    public class CardMsgResult
    {
        /// <summary>
        /// 数据正常返回“0”，如果发生错误，会返回对应的错误码
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 返回信息，包括接口请求发生错误时的详细信息。
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 推送失败的用户ID
        /// </summary>
        public List<string> failedUserId { get; set; }
        /// <summary>
        /// 消息ID
        /// </summary>
        public string itemId { get; set; }
    }

    public class UserDetailInfoReq
    {
        /// <summary>
        /// 工号
        /// </summary>
        public string corpUserId { get; set; }
        /// <summary>
        /// welink用户id
        /// </summary>
        public string userId { get; set; }
        /// <summary>
        /// 电话号
        /// </summary>
        public string mobileNumber { get; set; }
    }

    public class UserDetailInfoResp
    {
        /// <summary>
        /// 工号
        /// </summary>
        public string corpUserId { get; set; }
        /// <summary>
        /// welink用户id
        /// </summary>
        public string userId { get; set; }
        /// <summary>
        /// 员工当前状态
        /// </summary>
        public string userStatus { get; set; }
        /// <summary>
        /// 中文名称
        /// </summary>
        public string userNameCn { get; set; }
        /// <summary>
        /// 英文名称
        /// </summary>
        public string userNameEn { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public string sex { get; set; }
        /// <summary>
        /// 当前语言
        /// </summary>
        public string lang { get; set; }
        /// <summary>
        /// 移动号码
        /// </summary>
        public string mobileNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> phoneNumber { get; set; }
        /// <summary>
        /// 部门id
        /// </summary>
        public string mainCorpDeptCode { get; set; }
        /// <summary>
        /// welink部门id
        /// </summary>
        public string mainDeptCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> corpDeptCodes { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> deptCodes { get; set; }
        /// <summary>
        /// 部门信息
        /// </summary>
        public Object orderInDepts { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string userEmail { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string avatar { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        public string employeeId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string landlineNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string businessAddress { get; set; }
        /// <summary>
        /// 公司
        /// </summary>
        public string baseLocation { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sipNum { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        public string position { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int isActivated { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int isAdmin { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int isHideMobileNumber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int seniorMode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> roleIds { get; set; }
        /// <summary>
        /// 额外信息
        /// </summary>
        public Object extAttr { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public string creationTime { get; set; }
        /// <summary>
        /// 上次更新时间
        /// </summary>
        public string lastUpdatedTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string personType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string timeZone { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> corpRoleIds { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
    }
}
